package com.mocha.bss.feign.general.api;

import com.coffee.core.CoffeeResponse;
import com.coffee.log.capture.OperationLogBO;
import com.mocha.bss.BssServerInfo;
import com.mocha.bss.feign.general.api.fallback.MochaOperationLogFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: songkui
 * @since: 2022/3/11 15:25
 */
@FeignClient(value = BssServerInfo.APPLICATION_NAME, contextId = "mochaOperationLogFeign", path = BssServerInfo.PATH_PREFIX+BssServerInfo.LOG_PATH, fallbackFactory = MochaOperationLogFeignFallback.class)
public interface MochaOperationLogFeign {

    @PostMapping("/dispose")
    CoffeeResponse<?> dispose(@RequestBody OperationLogBO operationLogBO);

}
